//
//  UIView+PartPop.h
//  MengLiao
//
//  Created by xiuxin on 2022/7/15.
//  Copyright © 2022 BaseBusiness. All rights reserved.
//



NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSUInteger, THContentTargetTo) {
    THContentTargetTo_Bottom = 0,
    THContentTargetTo_Right,
    THContentTargetTo_Top,
    THContentTargetTo_Left,
    THContentTargetTo_Center,
};


@interface UIView (PartPop)

/// 关闭视图是从父视图删掉, 默认YES
@property (nonatomic, assign) BOOL zh_removeWhenClosed;
/// 出现动画时间
@property (nonatomic, assign) CGFloat zh_appearAnimationTime;
/// 关闭动画时间
@property (nonatomic, assign) CGFloat zh_closeAnimationTime;
/** 遮罩层透明度  默认0*/
@property (nonatomic, assign) CGFloat zh_masklyerAlpha;

@property (nonatomic, strong) UIView *zh_maskLayerView;

/**遮罩层是否不可点击 关闭视图 默认NO(可以点击)*/
@property (nonatomic, assign) BOOL zh_isCanNotClose;

@property (nonatomic, assign) THContentTargetTo zh_closeToWhere;

/**
 //默认从底部出现 滑动到底部
  @param done 回调
 */
- (void)thImg_show_ContentViewDone:(void(^)(void))done;
/**
 滑出视图
 @param fromWhere 从哪里来
 @param done 回调
 */
- (void)thImg_show_ContentViewFrom:(THContentTargetTo)fromWhere done:(void(^)(void))done;
/**
 隐藏当前视图的动画
 @param done 回调
 */
- (void)zh_closeContentViewDone:(nullable void(^)(void))done;
/**
 隐藏当前视图的动画
 @param toWhere 往哪个方向隐藏
 @param done 回调
 */
- (void)zh_closeContentViewToWhere:(THContentTargetTo)toWhere done:(nullable void (^)(void))done;


@end

NS_ASSUME_NONNULL_END
